import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { FormsModule,ReactiveFormsModule } from '@angular/forms';
import { AppRoutingModule } from './app-routing.module';

import { AppComponent } from './app.component';
import { loginComponent } from './login/login.component';
import { indexComponent } from "./index/index.component";
import { HeaderComponent } from './header/header.component';
import { MenuComponent } from './menu/menu.component';
import { FooterComponent } from './footer/footer.component';
import { ContentComponent } from './content/content.component';
import { HomeComponent } from './home/home.component';
import { Code404Component } from './code404/code404.component';
import { HttpInterceptorService } from "./http-interceptor.service";
import { HttpClientModule } from '@angular/common/http';
import { Page }   from './page/page';

import { FromComponent } from "./from/from.component";
import {UserComponent} from "./business/user/user.component";
import {AirFactorComponent} from "./business/airFactor/airFactor.component";
import {AirPollutantComponent} from "./business/airPollutant/airPollutant.component";
import {ElecFactorComponent} from "./business/elecFactor/elecFactor.component";
import {LocalInfoComponent} from "./business/localInfo/localInfo.component";
import {OperatorComponent} from "./business/operator/operator.component";
import {RoleComponent} from "./business/role/role.component";
import {SwitchFactorComponent} from "./business/switchFactor/switchFactor.component";
import {WaterFactorComponent} from "./business/waterFactor/waterFactor.component";
import {WaterPollutantComponent} from "./business/waterPollutant/waterPollutant.component";
import {CollectComponent} from "./business/collectData/collect.component";
import {MenuDataComponent} from "./business/menuData/menuData.component";
import {DepartmentComponent} from "./business/department/department.component";
import {ReverseLogComponent} from "./business/reverseLog/reverseLog.component";
import {ReceiveLogComponent} from "./business/receiveLog/receiveLog.component";
import {ExceptionLogComponent} from "./business/exceptionLog/exceptionLog.component";
import {ConnectLogComponent} from "./business/connectLog/connectLog.component";
import {OperateLogComponent} from "./business/operateLog/operateLog.component";
import {CollectDataComponent} from "./business/collectData/collectData/collectData.component";

import { LocationStrategy, HashLocationStrategy} from '@angular/common';
import {WaterComponent} from "./dims/water/water.component";
import {AirQualityComponent} from "./dims/air-quality/air-quality.component";
import {FieldEndComponent} from "./dims/Field-end/Field-end.component";
import {SurfaceWaterComponent} from "./dims/surface-water/surface-water.component";
import {VocComponent} from "./dims/VOC/VOC.component";
import {WorkingConditionComponent} from "./dims/working-condition/working-condition.component";
import {SewageComponent} from "./dims/sewage/sewage.component";
import {GasComponent} from "./dims/gas/gas.component";
import {HistoryComponent} from "./dims/history/history.component";
import {LocalStorage} from "./local.storage";
import {HttpURLService} from "./httpURL.service";
import {EliminatorComponent} from "./pages/servicemanage/eliminator.component";
import {PointComponent} from "./pages/pollutmanage/point.component";
import {UnitComponent} from "./pages/pollutmanage/unit.component";
import {CompanyComponent} from "./pages/servicemanage/company.component";
import {EnvironComponent} from "./pages/governmanage/environ.component";
import {EquipmentComponent} from "./pages/servicemanage/equipment.component";
import {StandardComponent} from "./pages/protectmanage/standard.component";
import {CodeComponent} from "./pages/usermanage/code.component";
import {UnitPipe} from "./pages/pollutmanage/upipe/unit.pipe";
import {WaterPipe} from "./pages/pollutmanage/upipe/water.pipe";
import {CompanyPipe} from "./pages/servicemanage/spipe/company.pipe";
import {ManufacturerTypePipe} from "./pages/servicemanage/spipe/manufacturerType.pipe";
import {EquipPipe} from "./pages/servicemanage/spipe/equip.pipe";
import {TypePipe} from "./pages/pollutmanage/upipe/type.pipe";
import {EliminatorPipe} from "./pages/servicemanage/spipe/eliminator.pipe";
import {UtilService} from "./pages/pollutmanage/util.service";
import {UnitService} from "./pages/pollutmanage/pservice/unit.service";
import {CompanyService} from "./pages/servicemanage/cservice/company.service";
import {PointService} from "./pages/pollutmanage/pservice/point.service";
import {EquipmentService} from "./pages/servicemanage/cservice/equipment.service";
import {EnvironService} from "./pages/governmanage/eservice/environ.service";
import {StandardService} from "./pages/protectmanage/sservice/standard.service";
import {EquipcodeService} from "./pages/servicemanage/cservice/equipcode.service";
import {PagerService} from "./pagination/pager.service";
import {UserService} from "./pages/usermanage/uservice/user.service";
import {DatePipe} from "@angular/common";
import {PageComponent} from "./pagination/page.component";

@NgModule({
  declarations: [
    AppComponent,
    loginComponent,
    indexComponent,
    HeaderComponent,
    MenuComponent,
    FooterComponent,
    ContentComponent,
    HomeComponent,
    Code404Component,
    Page,
    FromComponent,

    AirFactorComponent,
    AirPollutantComponent,
    CollectDataComponent,
    CollectComponent,
    ElecFactorComponent,
    LocalInfoComponent,
    MenuDataComponent,
    OperatorComponent,
    RoleComponent,
    SwitchFactorComponent,
    UserComponent,
    WaterFactorComponent,
    WaterPollutantComponent,
    DepartmentComponent,
    ReverseLogComponent,
    ReceiveLogComponent,
    ExceptionLogComponent,
    ConnectLogComponent,
    OperateLogComponent,

    WaterComponent,
    AirQualityComponent,
    FieldEndComponent,
    SewageComponent,
    SurfaceWaterComponent,
    VocComponent,
    WorkingConditionComponent,
    GasComponent,
    HistoryComponent,

    PageComponent,
    EliminatorComponent,
    PointComponent,
    UnitComponent,
    CompanyComponent,
    EquipmentComponent,
    EnvironComponent,
    StandardComponent,
    CodeComponent,
    UnitPipe,
    WaterPipe,
    CompanyPipe,
    ManufacturerTypePipe,
    EquipPipe,
    TypePipe,
    EliminatorPipe

  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    FormsModule,
    ReactiveFormsModule,
    HttpClientModule
  ],
  providers: [
    HttpInterceptorService,
    LocalStorage,
    HttpURLService,
    {provide: LocationStrategy, useClass: HashLocationStrategy},
    PagerService,
    UtilService,
    UnitService,
    CompanyService,
    PointService,
    EquipmentService,
    EnvironService,
    StandardService,
    UserService,
    EquipcodeService,
    DatePipe
  ],
  bootstrap: [AppComponent],
  entryComponents:[

  ],
})
export class AppModule { }


